<!doctype html>
<html lang="en">
<head>
    <meta charset="utf-8">
    <meta name="viewport" content="width=device-width, initial-scale=1">
    <title>所有文章</title>
    <link href="https://cdn.jsdelivr.net/npm/bootstrap@5.3.0-alpha1/dist/css/bootstrap.min.css" rel="stylesheet" integrity="sha384-GLhlTQ8iRABdZLl6O3oVMWSktQOp6b7In1Zl3/Jr59b6EGGoI1aFkw7cmDA6j6gD" crossorigin="anonymous">
</head>
<body>

<div class="container-fluid p-1 bg-dark text-white text-center">
    <ul class="nav">
        <li class="nav-item">
            <a class="nav-link active" aria-current="page" href="/">首页</a>
        </li>
        <li class="nav-item">
            <a class="nav-link" href="/article">文章</a>
        </li>
        <li class="nav-item">
            <a class="nav-link" href="/about">关于</a>
        </li>
        <li class="nav-item">
            <a class="nav-link" href="/message">留言板</a>
        </li>
    </ul>
</div>

<div class="container-fluid p-5 bg-primary text-white text-center">
    <h1>ARTICLES</h1>
    <p>所有博客</p>
</div>

<div class="container mt-5" th:each="blog,blogStat:${blogList}">
    <h1 ><a href="#" th:text="${blog.getTitle()}" th:href="@{/blog/{id}(id=${blog.getId()})}">title</a></h1>
    <p th:text="${blog.getDescription()}">DESCRIPTION</p>
</div>
<script src="https://cdn.jsdelivr.net/npm/bootstrap@5.3.0-alpha1/dist/js/bootstrap.bundle.min.js" integrity="sha384-/mhDoLbDldZc3qpsJHpLogda//BVZbgYuw6kof4u2FrCedxOtgRZDTHgHUhOCVim" crossorigin="anonymous"></script>
</body>
</html>